# -*- coding:utf-8 -*-

import matplotlib.pyplot as plt
import numpy as np

file_path = './apple_h.csv'
data = np.genfromtxt(file_path,delimiter=',')
y_pre = data[:,4]
print y_pre
# Plot the predicted (blue) and actual (green) values
plt.figure(figsize=(12,4))
plt.plot(y_pre)
plt.title("Predicted (blue) vs Actual (green) Opening Price Changes")
plt.xlabel("Testing instances")
plt.ylabel("Change in Opening Price")
plt.show()